//
//  PlayInfoModel.m
//  leisure
//
//  Created by xalo on 16/4/20.
//  Copyright © 2016年 Mr.wangYongxu. All rights reserved.
//

#import "PlayInfoModel.h"
#import "authOrUsrModel.h"

@implementation PlayInfoModel

-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
//    NSLog(@"key");
    if ([key isEqualToString:@"userinfo"]) {
        [self.userinfoModel setValuesForKeysWithDictionary:value];
    }
    if ([key isEqualToString:@"authorinfo"]) {
//        NSLog(@"key%@",key);
        [self.authorinfoModel setValuesForKeysWithDictionary:value];
    }

}

- (instancetype)init
{
    self = [super init];
    if (self) {
        self.authorinfoModel = [[authOrUsrModel alloc] init];
        self.userinfoModel = [[authOrUsrModel alloc] init];
    }
    return self;
}



@end
